package com.example.zk2

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import com.example.base.mvvm.BaseViewActivity
import com.example.zk2.databinding.ActivityMainBinding

class MainActivity : BaseViewActivity<ActivityMainBinding>() {
    override fun initView() {
        val navHostFragment = supportFragmentManager.findFragmentById(R.id.fragmentContainerView) as NavHostFragment
        val navController = navHostFragment.navController
        binding.bottom.setupWithNavController(navController)
    }

    override fun initData() {

    }

    override fun getLayout(): Int {
        return R.layout.activity_main
    }

}